package com.sgcc.fj.pmos.e_fj_home.bean;

import com.blankj.utilcode.util.GsonUtils;
import com.google.gson.reflect.TypeToken;
import com.sgcc.fj.pmos.common.utils.DateUtils;

import java.io.Serializable;
import java.util.List;

public class DynamicNetBean  implements Serializable{

    private String msg;
    private int code;
    private DataDTO data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO implements Serializable {
        private int total;
        private List<ListDTO> list;
        private int pageNum;
        private int pageSize;
        private int size;
        private int startRow;
        private int endRow;
        private int pages;
        private int prePage;
        private int nextPage;
        private boolean isFirstPage;
        private boolean isLastPage;
        private boolean hasPreviousPage;
        private boolean hasNextPage;
        private int navigatePages;
        private List<Integer> navigatepageNums;
        private int navigateFirstPage;
        private int navigateLastPage;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<ListDTO> getList() {
            return list;
        }

        public void setList(List<ListDTO> list) {
            this.list = list;
        }

        public int getPageNum() {
            return pageNum;
        }

        public void setPageNum(int pageNum) {
            this.pageNum = pageNum;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getStartRow() {
            return startRow;
        }

        public void setStartRow(int startRow) {
            this.startRow = startRow;
        }

        public int getEndRow() {
            return endRow;
        }

        public void setEndRow(int endRow) {
            this.endRow = endRow;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public int getPrePage() {
            return prePage;
        }

        public void setPrePage(int prePage) {
            this.prePage = prePage;
        }

        public int getNextPage() {
            return nextPage;
        }

        public void setNextPage(int nextPage) {
            this.nextPage = nextPage;
        }

        public boolean isIsFirstPage() {
            return isFirstPage;
        }

        public void setIsFirstPage(boolean isFirstPage) {
            this.isFirstPage = isFirstPage;
        }

        public boolean isIsLastPage() {
            return isLastPage;
        }

        public void setIsLastPage(boolean isLastPage) {
            this.isLastPage = isLastPage;
        }

        public boolean isHasPreviousPage() {
            return hasPreviousPage;
        }

        public void setHasPreviousPage(boolean hasPreviousPage) {
            this.hasPreviousPage = hasPreviousPage;
        }

        public boolean isHasNextPage() {
            return hasNextPage;
        }

        public void setHasNextPage(boolean hasNextPage) {
            this.hasNextPage = hasNextPage;
        }

        public int getNavigatePages() {
            return navigatePages;
        }

        public void setNavigatePages(int navigatePages) {
            this.navigatePages = navigatePages;
        }

        public List<Integer> getNavigatepageNums() {
            return navigatepageNums;
        }

        public void setNavigatepageNums(List<Integer> navigatepageNums) {
            this.navigatepageNums = navigatepageNums;
        }

        public int getNavigateFirstPage() {
            return navigateFirstPage;
        }

        public void setNavigateFirstPage(int navigateFirstPage) {
            this.navigateFirstPage = navigateFirstPage;
        }

        public int getNavigateLastPage() {
            return navigateLastPage;
        }

        public void setNavigateLastPage(int navigateLastPage) {
            this.navigateLastPage = navigateLastPage;
        }

        public static class ListDTO implements Serializable {
            private String guid;
            private Object startDate;
            private Object endDate;
            private Object pageNum;
            private Object pageSize;
            private Object total;
            private Object type;
            private String informationId;
            private String informationTypeId;
            private String title;
            private String content;
            private String marketId;
            private Object sourceName;
            private String author;
            private String founder;
            private String founderId;
            private String uploadDepartment;
            private String uploadDepartmentId;
            private String state;
            private String attachment;
            private String operateDate;
            private String validDate;
            private Object expiredDate;
            private String isDelete;
            private String sourceType;
            private String isTop;
            private int fyear;
            private Object fquarter;
            private int fmonth;
            private Object fday;
            private Object bpmId;
            private Object configDataId;
            private Object tradeseqId;
            private Object tradeStatus;
            private String authorChineseName;
            private String publishtype;
            private Object approvedByName;
            private Object isArchiveSucceed;
            private int readAmount;
            private Object applyType;
            private Object pushState;
            private Object targetMarketIds;
            private Object targetMarketNames;
            private Object pushTime;
            private Object receiptTime;
            private Object columnName;
            private Object receiveTime;
            private Object businessId;
            private Object isSealingMethod;
            private String recordState;
            private int isSend;
            private Object week;
            private Object topDate;
            private String publishObjectType;
            private Object latestTopDate;
            private Object isLatestTop;

            public List<Attachment> getAttachmentList() {
                List<Attachment> attachmentbean = GsonUtils.fromJson(attachment,  new TypeToken<List<Attachment>>(){}.getType());
                return attachmentbean;
            }

            public String getGuid() {
                return guid;
            }

            public void setGuid(String guid) {
                this.guid = guid;
            }

            public Object getStartDate() {
                return startDate;
            }

            public void setStartDate(Object startDate) {
                this.startDate = startDate;
            }

            public Object getEndDate() {
                return endDate;
            }

            public void setEndDate(Object endDate) {
                this.endDate = endDate;
            }

            public Object getPageNum() {
                return pageNum;
            }

            public void setPageNum(Object pageNum) {
                this.pageNum = pageNum;
            }

            public Object getPageSize() {
                return pageSize;
            }

            public void setPageSize(Object pageSize) {
                this.pageSize = pageSize;
            }

            public Object getTotal() {
                return total;
            }

            public void setTotal(Object total) {
                this.total = total;
            }

            public Object getType() {
                return type;
            }

            public void setType(Object type) {
                this.type = type;
            }

            public String getInformationId() {
                return informationId;
            }

            public void setInformationId(String informationId) {
                this.informationId = informationId;
            }

            public String getInformationTypeId() {
                return informationTypeId;
            }

            public void setInformationTypeId(String informationTypeId) {
                this.informationTypeId = informationTypeId;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getMarketId() {
                return marketId;
            }

            public void setMarketId(String marketId) {
                this.marketId = marketId;
            }

            public Object getSourceName() {
                return sourceName;
            }

            public void setSourceName(Object sourceName) {
                this.sourceName = sourceName;
            }

            public String getAuthor() {
                return author;
            }

            public void setAuthor(String author) {
                this.author = author;
            }

            public String getFounder() {
                return founder;
            }

            public void setFounder(String founder) {
                this.founder = founder;
            }

            public String getFounderId() {
                return founderId;
            }

            public void setFounderId(String founderId) {
                this.founderId = founderId;
            }

            public String getUploadDepartment() {
                return uploadDepartment;
            }

            public void setUploadDepartment(String uploadDepartment) {
                this.uploadDepartment = uploadDepartment;
            }

            public String getUploadDepartmentId() {
                return uploadDepartmentId;
            }

            public void setUploadDepartmentId(String uploadDepartmentId) {
                this.uploadDepartmentId = uploadDepartmentId;
            }

            public String getState() {
                return state;
            }

            public void setState(String state) {
                this.state = state;
            }

            public String getAttachment() {
                return attachment;
            }

            public void setAttachment(String attachment) {
                this.attachment = attachment;
            }

            public String getOperateDate() {
                return DateUtils.getStrng_to_Times_ymd_2(operateDate);
            }

            public void setOperateDate(String operateDate) {
                this.operateDate = operateDate;
            }

            public String getValidDate() {
                return DateUtils.getStrng_to_Times_ymd_2(validDate);
            }

            public void setValidDate(String validDate) {
                this.validDate = validDate;
            }

            public Object getExpiredDate() {
                return expiredDate;
            }

            public void setExpiredDate(Object expiredDate) {
                this.expiredDate = expiredDate;
            }

            public String getIsDelete() {
                return isDelete;
            }

            public void setIsDelete(String isDelete) {
                this.isDelete = isDelete;
            }

            public String getSourceType() {
                return sourceType;
            }

            public void setSourceType(String sourceType) {
                this.sourceType = sourceType;
            }

            public String getIsTop() {
                return isTop;
            }

            public void setIsTop(String isTop) {
                this.isTop = isTop;
            }

            public int getFyear() {
                return fyear;
            }

            public void setFyear(int fyear) {
                this.fyear = fyear;
            }

            public Object getFquarter() {
                return fquarter;
            }

            public void setFquarter(Object fquarter) {
                this.fquarter = fquarter;
            }

            public int getFmonth() {
                return fmonth;
            }

            public void setFmonth(int fmonth) {
                this.fmonth = fmonth;
            }

            public Object getFday() {
                return fday;
            }

            public void setFday(Object fday) {
                this.fday = fday;
            }

            public Object getBpmId() {
                return bpmId;
            }

            public void setBpmId(Object bpmId) {
                this.bpmId = bpmId;
            }

            public Object getConfigDataId() {
                return configDataId;
            }

            public void setConfigDataId(Object configDataId) {
                this.configDataId = configDataId;
            }

            public Object getTradeseqId() {
                return tradeseqId;
            }

            public void setTradeseqId(Object tradeseqId) {
                this.tradeseqId = tradeseqId;
            }

            public Object getTradeStatus() {
                return tradeStatus;
            }

            public void setTradeStatus(Object tradeStatus) {
                this.tradeStatus = tradeStatus;
            }

            public String getAuthorChineseName() {
                return authorChineseName;
            }

            public void setAuthorChineseName(String authorChineseName) {
                this.authorChineseName = authorChineseName;
            }

            public String getPublishtype() {
                return publishtype;
            }

            public void setPublishtype(String publishtype) {
                this.publishtype = publishtype;
            }

            public Object getApprovedByName() {
                return approvedByName;
            }

            public void setApprovedByName(Object approvedByName) {
                this.approvedByName = approvedByName;
            }

            public Object getIsArchiveSucceed() {
                return isArchiveSucceed;
            }

            public void setIsArchiveSucceed(Object isArchiveSucceed) {
                this.isArchiveSucceed = isArchiveSucceed;
            }

            public int getReadAmount() {
                return readAmount;
            }

            public void setReadAmount(int readAmount) {
                this.readAmount = readAmount;
            }

            public Object getApplyType() {
                return applyType;
            }

            public void setApplyType(Object applyType) {
                this.applyType = applyType;
            }

            public Object getPushState() {
                return pushState;
            }

            public void setPushState(Object pushState) {
                this.pushState = pushState;
            }

            public Object getTargetMarketIds() {
                return targetMarketIds;
            }

            public void setTargetMarketIds(Object targetMarketIds) {
                this.targetMarketIds = targetMarketIds;
            }

            public Object getTargetMarketNames() {
                return targetMarketNames;
            }

            public void setTargetMarketNames(Object targetMarketNames) {
                this.targetMarketNames = targetMarketNames;
            }

            public Object getPushTime() {
                return pushTime;
            }

            public void setPushTime(Object pushTime) {
                this.pushTime = pushTime;
            }

            public Object getReceiptTime() {
                return receiptTime;
            }

            public void setReceiptTime(Object receiptTime) {
                this.receiptTime = receiptTime;
            }

            public Object getColumnName() {
                return columnName;
            }

            public void setColumnName(Object columnName) {
                this.columnName = columnName;
            }

            public Object getReceiveTime() {
                return receiveTime;
            }

            public void setReceiveTime(Object receiveTime) {
                this.receiveTime = receiveTime;
            }

            public Object getBusinessId() {
                return businessId;
            }

            public void setBusinessId(Object businessId) {
                this.businessId = businessId;
            }

            public Object getIsSealingMethod() {
                return isSealingMethod;
            }

            public void setIsSealingMethod(Object isSealingMethod) {
                this.isSealingMethod = isSealingMethod;
            }

            public String getRecordState() {
                return recordState;
            }

            public void setRecordState(String recordState) {
                this.recordState = recordState;
            }

            public int getIsSend() {
                return isSend;
            }

            public void setIsSend(int isSend) {
                this.isSend = isSend;
            }

            public Object getWeek() {
                return week;
            }

            public void setWeek(Object week) {
                this.week = week;
            }

            public Object getTopDate() {
                return topDate;
            }

            public void setTopDate(Object topDate) {
                this.topDate = topDate;
            }

            public String getPublishObjectType() {
                return publishObjectType;
            }

            public void setPublishObjectType(String publishObjectType) {
                this.publishObjectType = publishObjectType;
            }

            public Object getLatestTopDate() {
                return latestTopDate;
            }

            public void setLatestTopDate(Object latestTopDate) {
                this.latestTopDate = latestTopDate;
            }

            public Object getIsLatestTop() {
                return isLatestTop;
            }

            public void setIsLatestTop(Object isLatestTop) {
                this.isLatestTop = isLatestTop;
            }

            public static class Attachment implements Serializable {

                private String id;
                private String name;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }
        }
    }
}
